Platform Explorer / Nuxeo Platform 2021.49

Contribution org.nuxeo.ecm.platform.routing.dashboard.contentviews--contentViews

This contribution is part of XML component org.nuxeo.ecm.platform.routing.dashboard.contentviews inside nuxeo-routing-dashboard-2021.49.2.jar /OSGI-INF/document-routing-dashboard-contentviews-contrib.xml

Extension Point

Extension point contentViews of component ContentViewService.

Registration Order

10
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <contentView name="routing_tasks">
    
          <coreQueryPageProvider>
            <property name="coreSession">#{documentManager}</property>
            <pattern>
              SELECT * FROM Document WHERE ecm:mixinType IN
              ('RoutingTask')
              AND ecm:isVersion = 0 AND
              ecm:isTrashed = 0 AND
              ecm:currentLifeCycleState !=
              'cancelled' AND
              ecm:currentLifeCycleState != 'ended' AND ecm:isProxy = 0
            </pattern>
            <pageSize>20</pageSize>
          </coreQueryPageProvider>
    
          <showPageSizeSelector>true</showPageSizeSelector>
          <useGlobalPageSize>false</useGlobalPageSize>
          <refresh>
            <event>documentChanged</event>
          </refresh>
          <cacheSize>0</cacheSize>
    
          <resultLayouts>
            <layout name="routing_task_listing"/>
          </resultLayouts>
    
          <selectionList>CURRENT_SELECTION</selectionList>
    
        </contentView>
  • <contentView name="user_open_tasks">
          <showTitle>false</showTitle>
          <coreQueryPageProvider>
            <property name="coreSession">#{documentManager}</property>
            <whereClause docType="user_open_tasks_cv">
              <predicate operator="LIKE" parameter="nt:processId">
                <field name="task_processId" schema="user_open_tasks_cv"/>
              </predicate>
              <predicate operator="=" parameter="nt:name">
                <field name="task_name" schema="user_open_tasks_cv"/>
              </predicate>
              <predicate operator="BETWEEN" parameter="nt:dueDate">
                <field name="task_dueDate_min" schema="user_open_tasks_cv"/>
                <field name="task_dueDate_max" schema="user_open_tasks_cv"/>
              </predicate>
              <fixedPart>
                ecm:mixinType IN ('RoutingTask') AND
                ecm:isVersion = 0 AND
                ecm:currentLifeCycleState =
                'opened' AND ecm:isProxy = 0
              </fixedPart>
            </whereClause>
            <pageSize>10</pageSize>
          </coreQueryPageProvider>
          <showFilterForm>true</showFilterForm>
          <showPageSizeSelector>false</showPageSizeSelector>
          <useGlobalPageSize>false</useGlobalPageSize>
          <refresh>
            <event>documentChanged</event>
            <event>documentCreated</event>
            <event>workflowTaskCompleted</event>
            <event>workflowNewProcessStarted</event>
          </refresh>
          <cacheSize>10</cacheSize>
          <cacheKey>#{org.jboss.seam.core.manager.currentConversationId}
          </cacheKey>
          <searchLayout filterUnfolded="true" name="routing_user_open_task_search_layout"/>
          <resultLayouts>
            <layout iconPath="" name="routing_user_open_task_listing" showCSVExport="false" showPDFExport="false" title="" translateTitle=""/>
          </resultLayouts>
        </contentView>
  • <contentView name="task_target_documents">
          <title>label.document.routing.participatingDocuments</title>
          <translateTitle>true</translateTitle>
          <showTitle>true</showTitle>
          <coreQueryPageProvider>
            <property name="coreSession">#{documentManager}</property>
            <parameter>#{routingTaskActions.getCurrentTaskTargetDocumentsIds()}
            </parameter>
            <whereClause docType="Document">
              <fixedPart>
                ecm:uuid IN (?) AND ecm:isVersion = 0 AND
                ecm:isProxy = 0
              </fixedPart>
            </whereClause>
            <pageSize>10</pageSize>
          </coreQueryPageProvider>
          <showFilterForm>false</showFilterForm>
          <showPageSizeSelector>false</showPageSizeSelector>
          <useGlobalPageSize>false</useGlobalPageSize>
          <refresh>
            <event>documentCreated</event>
            <event>documentChanged</event>
            <event>workflowTaskCompleted</event>
          </refresh>
          <cacheSize>10</cacheSize>
          <cacheKey>#{org.jboss.seam.core.manager.currentConversationId}
          </cacheKey>
          <resultLayouts>
            <layout iconPath="/icons/document_listing_icon.png" name="task_related_documents_listing" showCSVExport="false" showPDFExport="false" showSyndicationLinks="false" title="document_listing" translateTitle="true"/>
          </resultLayouts>
        </contentView>

XML Source

<extension point="contentViews" target="org.nuxeo.ecm.platform.ui.web.ContentViewService">

    <contentView name="routing_tasks">

      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <pattern>
          SELECT * FROM Document WHERE ecm:mixinType IN
          ('RoutingTask')
          AND ecm:isVersion = 0 AND
          ecm:isTrashed = 0 AND
          ecm:currentLifeCycleState !=
          'cancelled' AND
          ecm:currentLifeCycleState != 'ended' AND ecm:isProxy = 0
        </pattern>
        <pageSize>20</pageSize>
      </coreQueryPageProvider>

      <showPageSizeSelector>true</showPageSizeSelector>
      <useGlobalPageSize>false</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
      </refresh>
      <cacheSize>0</cacheSize>

      <resultLayouts>
        <layout name="routing_task_listing"/>
      </resultLayouts>

      <selectionList>CURRENT_SELECTION</selectionList>

    </contentView>

    <contentView name="user_open_tasks">
      <showTitle>false</showTitle>
      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <whereClause docType="user_open_tasks_cv">
          <predicate operator="LIKE" parameter="nt:processId">
            <field name="task_processId" schema="user_open_tasks_cv"/>
          </predicate>
          <predicate operator="=" parameter="nt:name">
            <field name="task_name" schema="user_open_tasks_cv"/>
          </predicate>
          <predicate operator="BETWEEN" parameter="nt:dueDate">
            <field name="task_dueDate_min" schema="user_open_tasks_cv"/>
            <field name="task_dueDate_max" schema="user_open_tasks_cv"/>
          </predicate>
          <fixedPart>
            ecm:mixinType IN ('RoutingTask') AND
            ecm:isVersion = 0 AND
            ecm:currentLifeCycleState =
            'opened' AND ecm:isProxy = 0
          </fixedPart>
        </whereClause>
        <pageSize>10</pageSize>
      </coreQueryPageProvider>
      <showFilterForm>true</showFilterForm>
      <showPageSizeSelector>false</showPageSizeSelector>
      <useGlobalPageSize>false</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
        <event>documentCreated</event>
        <event>workflowTaskCompleted</event>
        <event>workflowNewProcessStarted</event>
      </refresh>
      <cacheSize>10</cacheSize>
      <cacheKey>#{org.jboss.seam.core.manager.currentConversationId}
      </cacheKey>
      <searchLayout filterUnfolded="true" name="routing_user_open_task_search_layout"/>
      <resultLayouts>
        <layout iconPath="" name="routing_user_open_task_listing" showCSVExport="false" showPDFExport="false" title="" translateTitle=""/>
      </resultLayouts>
    </contentView>

    <contentView name="task_target_documents">
      <title>label.document.routing.participatingDocuments</title>
      <translateTitle>true</translateTitle>
      <showTitle>true</showTitle>
      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <parameter>#{routingTaskActions.getCurrentTaskTargetDocumentsIds()}
        </parameter>
        <whereClause docType="Document">
          <fixedPart>
            ecm:uuid IN (?) AND ecm:isVersion = 0 AND
            ecm:isProxy = 0
          </fixedPart>
        </whereClause>
        <pageSize>10</pageSize>
      </coreQueryPageProvider>
      <showFilterForm>false</showFilterForm>
      <showPageSizeSelector>false</showPageSizeSelector>
      <useGlobalPageSize>false</useGlobalPageSize>
      <refresh>
        <event>documentCreated</event>
        <event>documentChanged</event>
        <event>workflowTaskCompleted</event>
      </refresh>
      <cacheSize>10</cacheSize>
      <cacheKey>#{org.jboss.seam.core.manager.currentConversationId}
      </cacheKey>
      <resultLayouts>
        <layout iconPath="/icons/document_listing_icon.png" name="task_related_documents_listing" showCSVExport="false" showPDFExport="false" showSyndicationLinks="false" title="document_listing" translateTitle="true"/>
      </resultLayouts>
    </contentView>
  </extension>